package com.gg.user.gguser.config;


import org.quartz.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
//public class SimpleQuartzConfig {
//
//    @Bean
//    public JobDetail simpleQuartzTaskDetail(){
//        return JobBuilder.newJob(SimpleQuartzTask.class).withIdentity("simpleQuartzTask").storeDurably().build();
//    }
//
//    @Bean
//    public Trigger simpleQuartzTaskTrigger(){
//        CronScheduleBuilder scheduleBuilder = CronScheduleBuilder.cronSchedule("*/3 * * * * ?");
//        return TriggerBuilder.newTrigger().forJob(simpleQuartzTaskDetail())
//                .withIdentity("simpleQuartzTask")
//                .withSchedule(scheduleBuilder)
//                .build();
//    }
//}
